home *** CD-ROM | disk | FTP | other *** search
File List | 1995-04-13 | 549 b | 29 lines |
- REM An interesting fractal from Scientific American magazine
- REM Converted to Amiga GFA-BASIC V3.5 by Dalibor S. Kezele !
- OPENS 1,0,0,640,256,4,32768
- OPENW #1,0,0,640,256,1,4096
- xm=640/2
- ym=256/2
- INPUT "Enter three numbers :",i1%,i2%,i3%
- x1=0
- y1=0
- i1%=i1%+1
- i2%=i2%+1
- CLS
- TITLEW #1,"Numy II - Press <ESC> to quit!"
- REPEAT
- FOR c%=1 TO 15
- COLOR c%
- FOR f%=1 TO 200
- xx=y1-SQR(ABS(i2%*x1-i3%))*SGN(x1)
- yy=i1%-x1
- x1=xx
- y1=yy
- PLOT x1*10+xm,y1*10+ym
- NEXT f%
- NEXT c%
- UNTIL INKEY$=CHR$(27)
- CLOSEW #1
- CLOSES 1
- END
-